package bean.view;

import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

@ManagedBean(name="visual")
@ViewScoped
public class View implements Serializable {
	private static final long serialVersionUID = -6562680797010557874L;
	
	// design
	private String status;
	private String image;
	boolean popup;
	
	public void logOffMessage(String message){
		status = message;
		image = "smile.png";
		popup = true;
	}
	
	public void successMessage(String message){
		status = message;
		image = "success.png";
		popup = true;
	}
	
	public void errorMessage(String message){
		status = message;
		image = "error.png";
		popup = true;
	}
	
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public boolean isPopup() {
		return popup;
	}
	public void setPopup(boolean popup) {
		this.popup = popup;
	}
	
	

	

}
